﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.master" AutoEventWireup="true"
    CodeFile="RoleManage.aspx.cs" Inherits="Systems_RoleManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../Scripts/validform.js" type="text/javascript"></script>
    <script src="../Scripts/YJPopup.js" type="text/javascript"></script>
    <script src="../Scripts/GiveTip.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(function () {
            $.checkForm();
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="tabContent">
        <tr>
            <th lang="th">
                岗位添加
            </th>
        </tr>
        <tr>
            <td lang='td'>
                <table style="border-collapse: separate" cellpadding="2">
                    <tr>
                        <td align="right">
                            岗位：
                        </td>
                        <td>
                            <NC:FTextBox ID="txtRoleName" runat="server" Width="170px" CheckGroup="Add" />
                        </td>
                        <td align="right">
                            权重：
                        </td>
                        <td>
                            <NC:FTextBox ID="txtWeights" runat="server" Text="50" Width="50px" CheckType="Int"
                                CheckGroup="Add" onchange="if(this.value<=0 || this.value>100){alert('权重只能在1到100之间！');this.value='50';}" />
                        </td>
                        <td align="right">
                            备注：
                        </td>
                        <td colspan="3">
                            <NC:FTextBox ID="txtMemo" runat="server" Width="200px" EnableNull="true" />
                        </td>
                        <td align="center">
                            <asp:Button ID="btnAdd" runat="server" class="btn btn3" Text="添 加" CheckGroup="Add"
                                OnClick="btnAdd_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <th colspan="4" lang="th">
                岗位列表
            </th>
        </tr>
        <tr>
            <td lang="td">
                <NC:FGridView ID="GridView1" runat="server" AutoCreateNumber="true" DataKeyNames="ID"
                    AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderText="岗位">
                            <ItemTemplate>
                                <%# Eval("RoleName")%>
                            </ItemTemplate>
                            <ItemStyle Width="150px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="权重">
                            <ItemTemplate>
                                <%# Eval("Weights")%>
                            </ItemTemplate>
                            <ItemStyle Width="50px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="备注">
                            <ItemTemplate>
                                <%# Eval("Memo") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Button runat="server" class="Gridbtn" OnClientClick="GiveTip(event,'您确定删除吗？');"
                                    CommandArgument='<%# Eval("ID") %>' uncheck="true" ID="btnDel" Text="删除" OnClick="btnDel_Click" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </NC:FGridView>
            </td>
        </tr>
    </table>
</asp:Content>
